package com.joinway.platform.bean;

import java.util.List;

import org.springframework.util.StringUtils;

import com.joinway.framework.bean.BaseBean;

public class EasyUIPageField extends BaseBean {
	/**
	 * 
	 */
	private static final long serialVersionUID = 2667374316284514654L;
	boolean visible;
	boolean editable = false;
	List<RadioItem> radios;
	String name;
	String uname;
	String type;
	String category;
	String text;
	String option;
	String min;
	String max;
	boolean autoId;
	String precision;
	public void setName(String name) {
		this.name = name;
		this.uname = StringUtils.capitalize(name);
	}
	public boolean isVisible() {
		return visible;
	}
	public void setVisible(boolean visible) {
		this.visible = visible;
	}
	public boolean isEditable() {
		return editable;
	}
	public void setEditable(boolean editable) {
		this.editable = editable;
	}
	public List<RadioItem> getRadios() {
		return radios;
	}
	public void setRadios(List<RadioItem> radios) {
		this.radios = radios;
	}
	public String getUname() {
		return uname;
	}
	public void setUname(String uname) {
		this.uname = uname;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getCategory() {
		return category;
	}
	public void setCategory(String category) {
		this.category = category;
	}
	public String getText() {
		return text;
	}
	public void setText(String text) {
		this.text = text;
	}
	public String getOption() {
		return option;
	}
	public void setOption(String option) {
		this.option = option;
	}
	public String getMin() {
		return min;
	}
	public void setMin(String min) {
		this.min = min;
	}
	public String getMax() {
		return max;
	}
	public void setMax(String max) {
		this.max = max;
	}
	public boolean isAutoId() {
		return autoId;
	}
	public void setAutoId(boolean autoId) {
		this.autoId = autoId;
	}
	public String getPrecision() {
		return precision;
	}
	public void setPrecision(String precision) {
		this.precision = precision;
	}
	public String getName() {
		return name;
	}
}
